package org.dragon.services;

import org.dragon.models.Permission;
import org.dragon.models.Role;

import java.util.List;

/**
 * Author:     Zhao Yan
 * DateTime:   2023/5/22 9:12
 */
public interface RoleService {

    List<Role> findRoles(String accountId);

    List<Permission> findPermissions(Long roleId);

    Role findById(Long id);

    void save(Role role);

    void delete(Role role);
}
